﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
using System.Text.Json.Serialization;
using TyMES.Model;

namespace TyMES.Model.BaseInformation
{
    /// <summary>
    /// Order_Model
    /// </summary>
	[Table("T_MOrders")]

    [Display(Name = "_Model.Order_Model")]
    public class Order_Model : TopBasePoco
    {
        [Display(Name = "_Model._Order_Model._orderType")]
        [Comment("工单类型")]
        public string OrderType { get; set; }
        [Display(Name = "_Model._Order_Model._orderCode")]
        [Comment("工单编号")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string OrderCode { get; set; }
        [Display(Name = "_Model._Order_Model._orderQty")]
        [Comment("工单数量")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string OrderQty { get; set; }
        [Display(Name = "_Model._Order_Model._order_Status")]
        [Comment("工单状态")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public OrderStatusEnum Order_Status { get; set; }
        [Display(Name = "_Model._Order_Model._materialCode")]
        [Comment("虚拟物料编码")]
        public string MaterialCode { get; set; }
        [Display(Name = "_Model._Order_Model._materialId")]
        [Comment("虚拟物料ID")]
        public string MaterialId { get; set; }
        [Display(Name = "_Model._Order_Model._materialName")]
        [Comment("虚拟物料名称")]
        public string MaterialName { get; set; }
        [Display(Name = "_Model._Order_Model._materialVersion")]
        [Comment("虚拟物料版本")]
        public string MaterialVersion { get; set; }
        [Display(Name = "_Model._Order_Model._scheduleCode")]
        [Comment("分工单编码")]
        public string ScheduleCode { get; set; }
        [Display(Name = "_Model._Order_Model._scheduleQty")]
        [Comment("分工单数量")]
        public string ScheduleQty { get; set; }
        [Display(Name = "_Model._Order_Model._scheduleEditTime")]
        [Comment("分工单编辑时间")]
        public string ScheduleEditTime { get; set; }
        [Display(Name = "_Model._Order_Model._scheduleId")]
        [Comment("分工单ID")]
        public string ScheduleId { get; set; }
        [Display(Name = "_Model._Order_Model._scheduleStationId")]
        [Comment("分工单站号")]
        public string ScheduleStationId { get; set; }
        [Display(Name = "_Model._Order_Model._MOrderStatus")]
        [Comment("分工单状态")]
        public string MOrderStatus { get; set; }
        [Display(Name = "_Model._Order_Model._workshopCode")]
        [Comment("车间编码")]
        public string WorkshopCode { get; set; }
        [Display(Name = "_Model._Order_Model._workshopName")]
        [Comment("车间名称")]
        public string WorkshopName { get; set; }
        [Display(Name = "_Model._Order_Model._lineCode")]
        [Comment("产线号")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string LineCode { get; set; }
        [Display(Name = "_Model._Order_Model._lineName")]
        [Comment("产线名称")]
        public string LineName { get; set; }
        [Display(Name = "_Model._Order_Model._stationCode")]
        [Comment("上线工位编码")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string StationCode { get; set; }
        [Display(Name = "_Model._Order_Model._stationName")]
        [Comment("上线工位名称")]
        public string StationName { get; set; }
        [Display(Name = "_Model._Order_Model._equipmentCode")]
        [Comment("设备编码")]
        public string EquipmentCode { get; set; }
        [Display(Name = "_Model._Order_Model._startTime")]
        [Comment("开始时间")]
        public string StartTime { get; set; }
        [Display(Name = "_Model._Order_Model._endTime")]
        [Comment("结束时间")]
        public string EndTime { get; set; }
        [Display(Name = "_Model._Order_Model._factoryCode")]
        [Comment("工厂编码")]
        public string FactoryCode { get; set; }
        [Display(Name = "_Model._Order_Model._field1")]
        [Comment("预留域1")]
        public string Field1 { get; set; }
        [Display(Name = "_Model._Order_Model._field2")]
        [Comment("预留域2")]
        public string Field2 { get; set; }
        [Display(Name = "_Model._Order_Model._field3")]
        [Comment("预留域3")]
        public string Field3 { get; set; }
        [Display(Name = "_Model._Order_Model._field4")]
        [Comment("预留域4")]
        public string Field4 { get; set; }
        [Display(Name = "_Model._Order_Model._field5")]
        [Comment("预留域5")]
        public string Field5 { get; set; }

	}

}
